@mixin w {
    width: 1150px;margin: 0 auto;
}
@mixin textCenter($val){
    text-align: center;
    line-height: $val;
}
@mixin flexCenter{
    display: flex;
    justify-content: center;
    align-items: center;
}
@import "./yohofooter.scss";

.cart-header{
    height: 66px;
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
    .header{
        height: 100%;
        width: 990px;
        margin: 0 auto;
        .logo{
            float: left;
            height: 100%;
            a{
                display: block;
                line-height: 66px;
                img{
                    vertical-align: middle;
                }
            }
        }
        .head-right{
            height: 100%;
            float: right;
            display: flex;
            line-height: 66px;
            ul{
                height: 100%;
                li{
                    float: left;
                    padding: 0 5px;
                    a{
                        color: #000;
                    }
                }
                #loginBox{
                   .quitBtn{
                       background-color: #fff;
                       border: 0;
                       cursor: pointer;
                       font-size: 12px;
                       margin-left: 5px;
                   }
                }
            }
        }
    }
}

.shop-cart{
    .cart-content{
        @include w();
        .cart-title{
            width: 990px;
            height: 42px;
            margin: 40px auto 50px auto;
           .title-img{
            float: left;
            width: 159px;
            height: 42px;
            background: url(../img/cart.png) no-repeat;
            background-position: -234px -38px;
            background-size: 460px 217px;
           }
            ul{
                float: right;
                line-height: 42px;
                border-top: 2px solid #b0b0b0;
                li{
                    font-size: 14px;
                    float: left;
                    &+li{
                        padding-left:100px;
                    }
                }
            }
        } 

        .cart-tips{
            width: 990px;
            margin: 0 auto;
            height: 24px;
            line-height: 24px;
            padding: 4px 0;
            color: #818181;
            font-size: 14px;
            font-weight: 300;
            background-color: #f0f0f0;
            margin-bottom: 20px;
            .tipsbox{
                float: left;
                margin-left: 50px;
            }
            .btn-close{
                float: right;
                margin-right: 10px;
                font-size: 20px;
                color: #818181;
            }
        }

        #cartList{
            width: 990px;
            min-height: 373px;
            margin: 0 auto;
            .cart-wrap{
                width: 100%;
                .cart-empty{
                    width: max-content;
                    margin: 0 auto;
                    padding: 110px 0 30px 0;
                    text-align: center;
                    font-size: 18px;
                    display: none;
                    .icon-tianchongxing-{
                        font-size: 140px;
                    }
                    .shop{
                        display: block;
                        margin: 20px auto 0 auto;
                        width: 130px;
                        height: 34px;
                        border: 1px solid #000;
                        @include textCenter(34px);
                        color: #000;
                    }
                }
                .order-pay{
                    .pay-wrap{
                        .pay-title{
                            height: 50px;
                            background-color: #000;
                            p{
                                float: left;
                                color: #fff;
                                @include textCenter(50px);
                                font-size: 16px;
                                font-weight: 300;
                            }
                        }

                        .cart-table{
                            width: 100%;
                            .table{
                                width: 100%;
                                .table-item{
                                    width: 100%;
                                    height: 150px;
                                    margin: 10px 0;
                                    display: flex;
                                    align-items: center;
                                    border: 1px solid #f0f0f0 ;
                                    background-color: #f5f5f5;
                                    .checkOne-all{
                                        width: 6%;
                                        text-align: center;
                                    }
                                    .goodsMsg{
                                        width: 35%;
                                        display: flex;
                                        align-items: center;
                                        justify-content: center;
                                        img{
                                            width: 64px;
                                        }
                                    }
                                    .goodsPrice{
                                        width: 14%;
                                        text-align: center;
                                    }
                                    .buyNum{
                                        display: flex;
                                        justify-content: center;
                                        width: 15%;
                                        text-align: center;
                                        input{
                                            width: 38px;
                                            height: 30px;
                                            text-align: center;
                                            border: 1px solid #f0f0f0;
                                        }
                                        span{
                                            width: 30px;
                                            height: 30px;
                                            border: 1px solid #f0f0f0;
                                            line-height: 30px;
                                            font-size: 16px;
                                            cursor: pointer;
                                            background-color: #fff;
                                            user-select: none;
                                        }
                                    }
                                    .sub-total{
                                        width: 16%;
                                        text-align: center;
                                    }
                                    .cart-operation{
                                        width: 11.8%;
                                        text-align: center;
                                        .del{
                                            cursor: pointer;
                                            
                                        }
                                    }
                                }
                            }
                        }

                        .cart-footer{
                            width: 100%;
                            height: 50px;
                            display: flex;
                            justify-content: space-between;
                            background-color: #e0e0e0;
                            align-items: center;
                            padding-left: 50px;
                            box-sizing: border-box;
                            font-size: 14px;
                            margin-bottom: 10px;
                            .fixed-option{
                                flex: 1;
                            }
                            .select-num{
                                flex: 1;
                                .ins{
                                    color: red;
                                }
                            }
                            .price-sum{
                                width: 300px;
                                strong{
                                    font-size: 20px;
                                    color: red;
                                    float: right;
                                    margin-right: 10px;
                                }
                            }
                            #SubmitBtn{
                                width: 150px;
                                height: 50px;
                                background-color: #b0b0b0;
                                font-size: 20px;
                                font-weight: 700;
                                @include textCenter(50px);
                                color: white;
                            }
                        }
                    }
                }
            }
        }

        .bottom-tab{
            width: 990px;
            margin: 0 auto;
            height: 41px;
            line-height: 41px;
            font-size: 20px;
            span{
                cursor: pointer;
            }
            .bottom1,.bottom2{
                width: max-content;
                margin-right: 20px;
                padding-bottom: 5px;
            }
            .bot-active{
                border-bottom: 3px solid #000;
            }
            .change{
                float: right;
            }
        }
        .rec-goods{
            width: 990px;
            margin: 20px auto;
            ul{
                display: flex;
                justify-content: space-between;
                li{
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    p,span{
                        padding: 5px 0;
                    }
                    span{
                        color: red;
                    }
                    button{
                        width: 110px;
                        height: 28px;
                        border: 1px solid #000;
                        background-color: #fff;
                    }
                }
            }
        }

    }
}


.returnTop{
    width: 60px;
    height: 60px;
    background-color: #baa7a7;
    position: fixed;
    right: 8%;
    bottom: 10%;
    font-size: 30px;
    color: white;
    @include textCenter(60px);
    cursor: pointer;
    display: none;
    &:hover{
        background-color: #000;
    }
}